<include file="Login:header" />
<!--文章列表-->
<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <a href="{:U('Product/index')}" class="on"><em>产品列表</em></a><span>|</span>
        <a href="{:U('Product/add')}" class=""><em>添加产品</em></a><span>|</span>
        <a href="{:U('Home/index/product')}" target="_blank" class=""><em>官网产品列表</em></a>
    </div>
</div>
<div class="pad_lr_10" >
    <form name="searchform" method="get" >
        <table width="100%" cellspacing="0" class="search_form">
            <tbody>
            <tr>
                <td>
                    <div class="explain_col">
                        &nbsp;&nbsp;标题 :
                        <input name="name" type="text" class="input-text" size="25" value="{$search.name}" />
                        <input type="submit" name="search" class="btn" value="搜索" />
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('product/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="name">产品名</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="type">类型</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="mechanism">机构</span></th>
                <th align="left">额度范围</th>
                <th align="left"><span data-tdtype="order_by" data-field="city">城市</span></th>
                <th align="left">月利率范围</th>
                <th align="left">期限范围</th>
                <th width=150><span data-tdtype="order_by" data-field="create_time">创建时间</span></th>
                <th width=60><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="is_display">显示</span></th>
                <th width="120">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="center">{$val.id}</td>
                    <td align="left">
                        <span data-tdtype="edit" data-field="name" data-id="{$val.id}" class="tdedit" style="color:{$val.colors};">{$val.name}</span>
                    </td>
                    <td align="center">{$val.type}</td>
                    <td align="left">
                        <span data-tdtype="edit" data-field="mechanism" data-id="{$val.id}" class="tdedit" style="color:{$val.colors};">{$val.mechanism}</span>
                    </td>
                    <td align="left">{$val.scope_start} - {$val.scope_end} 元</td>
                    <td align="left">{$val.city}</td>
                    <td align="left">{$val.month_rate_start} - {$val.month_rate_end} %</td>
                    <td align="left">{$val.time_limit_start} - {$val.time_limit_end} 月</td>
                    <td align="center">{:date('Y-m-d H:i:s',$val['create_time'])}</td>
                    <td align="center">
                        <span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span>
                    </td>
                    <td align="center">
                        <img data-tdtype="toggle" data-id="{$val.id}" data-field="is_display" data-value="{$val.is_display}" src="__ROOT__/static/images/admin/toggle_<if condition="$val.is_display eq 0">disabled<else/>enabled</if>.gif" />
                    </td>
                    <td align="center">
                        <a target="_blank" href="{:u('Home/index/one_product', array('id'=>$val['id']))}">打开文章</a> |
                        <a href="{:u('product/add', array('id'=>$val['id']))}">修改</a> |
                        <a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('product/delete', array('id'=>$val['id']))}" data-msg="确认删除 - {$val['name']}">删除</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        <if condition="$Think.get.perpage gt 10">
            <div style="height: 60px;"></div>
        </if>
        <div class="btn_wrap_fixed">
            <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('product/delete')}?ok=1" data-name="id" data-msg="确认删除" value="删除" />
            <div id="pages">{$page}</div>
        </div>
    </div>
</div>
<include file="Login:footer" />
</body>
</html>